#ifndef LASERCAMERATRACKINSVIEW_H
#define LASERCAMERATRACKINSVIEW_H

#include <QWidget>
#include "../ProgramSet/lasercameratrackinstruction.h"

namespace Ui {
class LaserCameraTrackInsView;
}

class LaserCameraTrackInsView : public QWidget
{
    Q_OBJECT

public:
    explicit LaserCameraTrackInsView(int styleIdIn, QWidget *parent = 0);
    ~LaserCameraTrackInsView();
public:
    /**
     * @brief getInput             获取界面输入
     */
    void getInput(LaserCameraTrackInstruction &instructionParaOut);

    /**
     * @brief updateView            根据instructionPara更新数据显示在界面
     */
    void updateView();

    /**
     * @brief changeLanguage      界面语言切换
     * @param language
     */
    void changeLanguage(int language);

    void initialDisplayStyle(int styleId);
private:
    void finishEditInstruction(LaserCameraTrackInstruction instructionParaIn,QString &instructionStrOut);

private slots:
    void on_clearNote_Btn_clicked();

    void on_save_Btn_clicked();



signals:
    /**
     * @brief cleanNoteStrSignal             删除注释信号
     */
    void cleanNoteStrSignal();

    /**
     * @brief saveInstructionSignal         保存指令
     * @param instructionStr                指令字符串
     */
    void saveInstructionSignal(const QString& instructionStr);


public:
        QString instructionStr;
        LaserCameraTrackInstruction instructionPara;
private:
    Ui::LaserCameraTrackInsView *ui;
};

#endif // LASERCAMERATRACKINSVIEW_H
